
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

//路由
import { createRouter, createWebHashHistory } from 'vue-router'
const app = createApp(App)

const MioHome = import('./views/MioHome.vue')
const MioAbout = import('./views/MioAbout.vue')

const router = createRouter({
    history: createWebHashHistory(),
    routes:[
        { path: '/home', component:() => import('./views/MioHome.vue')},
        { path: '/about', component:() => import('./views/MioAbout.vue') }
    ]
})

app.use(router)
app.use(ElementPlus)
app.mount('#app')






